package com.sz.biz.common.customer.entity;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: Johnboy <br>
 * Date: 2017-08-04 14:55:00
 */
public enum AddressTypeEnum {
    SENDADDRESS(1, "发货地址"),
    RECEIVERADDRESS(2, "收货地址"),
    PICKADDRESS(3, "提货地址");


    private int code;
    private String name;

    public AddressTypeEnum value(int code) {
        for (AddressTypeEnum projectStatusEnum : AddressTypeEnum.values()) {
            if (projectStatusEnum.getCode() == code) {
                return projectStatusEnum;
            }
        }
        return null;
    }

    AddressTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
